Skip to content

Document persistent reverse-proxy hostnames for systemd - #845

Open
bearyjd wants to merge 1 commit into
Ark0N:masterfrom
bearyjd:docs/systemd-reverse-proxy-host
Open

bearyjd wants to merge 1 commit into
Ark0N:masterfrom
bearyjd:docs/systemd-reverse-proxy-host

Conversation

@bearyjd

@bearyjd bearyjd commented Nov 22, 2026

Copy link
Copy Markdown

Summary

Document how to persist CODEMAN_ALLOWED_HOSTS for the Linux systemd user service behind a reverse proxy. The example covers existing allowlist entries, named instances, and checking the terminal WebSocket after a restart.

Verification

  • Applied the patch to the upstream Remote Access source.
  • Verified the systemd drop-in on an installer-managed Linux instance. The proxied dashboard returned HTTP 200, and the terminal WebSocket accepted the configured origin and rejected an unrelated origin.

Related installer proposal: #844.

@Ark0N

Ark0N commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Thanks for this, @bearyjd, and welcome to Codeman. The PR adds a section to the Remote Access page on keeping CODEMAN_ALLOWED_HOSTS across restarts with a systemd drop-in. I checked each step against the installer and the systemd docs, and the drop-in, the merge with existing hosts and the EnvironmentFile= caveat are all correct.

There are two small wording changes. I will apply them at merge time, so you do not need to push again:

  1. docs/wiki/Remote-Access.md:219: the unit file ~/.config/systemd/user/codeman-web.service is outside the app checkout too, so that is not what keeps the drop-in safe. Re-running the installer or codeman service install rewrites the unit file without carrying CODEMAN_ALLOWED_HOSTS over, and leaves codeman-web.service.d/ alone. That is why the drop-in survives. I will say so, name the drop-in path, and note that install.sh uninstall leaves the folder behind.
  2. docs/wiki/Remote-Access.md:211: I will name the unit of a named instance, codeman-web-<instance>.service (for example codeman-web-beta.service), and point at CODEMAN_INSTANCE=<instance> codeman service status, which prints it.

Thanks again for writing this up after working it out yourself. It will save the next person the same work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants